/**
 * Created by sam on 16-10-14.
 */

module.exports.config = {
    "appenders":
    [
        {
            "type": "dateFile",
            "filename": "./logs/azcraw.log",
            "pattern": "-yyyy-MM-dd",
            "alwaysIncludePattern": false
        },
        {
            "type": "console"
        }
    ],
        "replaceConsole": true,
    "levels":
    {
        "log_file":"ALL",
        "console":"ALL",
        //"log_date":"ALL"
    }
};

/*
exports.getLogger = function(name,instance,level){
    var log4js = require('log4js');
    log4js.configure({
            "appenders": [
                {
                    "type": "dateFile",
                    "filename": "logs/jdcraw.log",
                    "pattern": "-yyyy-MM-dd",
                    "alwaysIncludePattern": false
                },
                {
                    "type": "console"
                }
            ]
        },
        {cwd: 'instance/'+instance }
    );
    var logger = log4js.getLogger(name);
    logger.setLevel(level);
    return logger;
}*/
